package method_0819;

import java.util.Scanner;

public class MethodDemo {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int year=sc.nextInt();
        System.out.println(isPrime(year));
        int a=10;
        int b=20;
        int ret=add(a,b);
        System.out.println("第一次调用add方法之前");
        add(10,20);
        System.out.println(ret);
        System.out.println("第一次调用add方法之后");
        System.out.println("第二次调用add方法之前");
        add(20,30);
        System.out.println(ret);
        System.out.println("第二次调用add方法之后");


    }
    public static boolean isPrime(int year){
        return ((year%100!=0)&&(year%4==0)||(year%400==0));
    }
    public static int add(int x,int y){
        System.out.println("调用add方法过程中，x="+x+",y="+y);
        return x+y;
    }
}
